/**
 * @Description:
 * @Author: jiaxiuc
 * @Date: 2024-04-25
 * @LastEditors: jiaxiuc
 * @LastEditTime: 2024-04-25
 */
import { BaseService } from './base-service'

class AdminService extends BaseService {
  selectViewConfig(params) {
    return this.request({
      method: 'get',
      url: `/api/selectViewConfig`,
      params,
    })
  }
  addTableView(data) {
    return this.request({
      method: 'post',
      url: `/api/addTableView`,
      data,
    })
  }
  deleteViewConfig(params) {
    return this.request({
      method: 'delete',
      url: `/api/deleteViewConfig`,
      params,
    })
  }
  showTable(params) {
    return this.request({
      method: 'get',
      url: `/api/showTable`,
      params,
    })
  }
  showTableFields(params) {
    return this.request({
      method: 'get',
      url: `/api/showTableFields`,
      params,
    })
  }
  selectHairUser(params) {
    return this.request({
      method: 'get',
      url: `/api/selectHairUser`,
      params,
    })
  }
  deleteHairUser(params) {
    return this.request({
      method: 'delete',
      url: `/api/deleteHairUser`,
      params,
    })
  }
  addHairUser(data) {
    return this.request({
      method: 'post',
      url: `/api/addHairUser`,
      data,
    })
  }
}

export const adminService = new AdminService()
